package com.ruoyi.merchant.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.merchant.mapper.CustomerHistoryMedicalDiseaseMapper;
import com.ruoyi.merchant.domain.CustomerHistoryMedicalDisease;
import com.ruoyi.merchant.service.ICustomerHistoryMedicalDiseaseService;

/**
 * 客户病史习惯-疾病Service业务层处理
 * 
 * @author chengxin.ju
 * @date 2023-12-12
 */
@Service
public class CustomerHistoryMedicalDiseaseServiceImpl implements ICustomerHistoryMedicalDiseaseService 
{
    @Autowired
    private CustomerHistoryMedicalDiseaseMapper customerHistoryMedicalDiseaseMapper;

    /**
     * 查询客户病史习惯-疾病
     * 
     * @param id 客户病史习惯-疾病主键
     * @return 客户病史习惯-疾病
     */
    @Override
    public CustomerHistoryMedicalDisease selectCustomerHistoryMedicalDiseaseById(String id)
    {
        return customerHistoryMedicalDiseaseMapper.selectCustomerHistoryMedicalDiseaseById(id);
    }

    /**
     * 查询客户病史习惯-疾病列表
     * 
     * @param customerHistoryMedicalDisease 客户病史习惯-疾病
     * @return 客户病史习惯-疾病
     */
    @Override
    public List<CustomerHistoryMedicalDisease> selectCustomerHistoryMedicalDiseaseList(CustomerHistoryMedicalDisease customerHistoryMedicalDisease)
    {
        return customerHistoryMedicalDiseaseMapper.selectCustomerHistoryMedicalDiseaseList(customerHistoryMedicalDisease);
    }

    /**
     * 新增客户病史习惯-疾病
     * 
     * @param customerHistoryMedicalDisease 客户病史习惯-疾病
     * @return 结果
     */
    @Override
    public int insertCustomerHistoryMedicalDisease(CustomerHistoryMedicalDisease customerHistoryMedicalDisease)
    {
        return customerHistoryMedicalDiseaseMapper.insertCustomerHistoryMedicalDisease(customerHistoryMedicalDisease);
    }

    /**
     * 修改客户病史习惯-疾病
     * 
     * @param customerHistoryMedicalDisease 客户病史习惯-疾病
     * @return 结果
     */
    @Override
    public int updateCustomerHistoryMedicalDisease(CustomerHistoryMedicalDisease customerHistoryMedicalDisease)
    {
        return customerHistoryMedicalDiseaseMapper.updateCustomerHistoryMedicalDisease(customerHistoryMedicalDisease);
    }

    /**
     * 批量删除客户病史习惯-疾病
     * 
     * @param ids 需要删除的客户病史习惯-疾病主键
     * @return 结果
     */
    @Override
    public int deleteCustomerHistoryMedicalDiseaseByIds(String[] ids)
    {
        return customerHistoryMedicalDiseaseMapper.deleteCustomerHistoryMedicalDiseaseByIds(ids);
    }

    /**
     * 删除客户病史习惯-疾病信息
     * 
     * @param id 客户病史习惯-疾病主键
     * @return 结果
     */
    @Override
    public int deleteCustomerHistoryMedicalDiseaseById(String id)
    {
        return customerHistoryMedicalDiseaseMapper.deleteCustomerHistoryMedicalDiseaseById(id);
    }
}
